home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Megahits 6
/
Megahits 6 (1995)(GTI - Rhein-Main-Soft)(DE)(Disc 2 of 2)[!].iso
/
time_ungepackt
/
time_361_390
/
time_387
/
megafish
/
tools
/
mf-rexxscripts
/
goldfish.mfish
< prev
next >
Wrap
Text File
|
1995-07-15
|
4KB
|
90 lines
/*$VER: GoldFish.MFISH v0.3 (W) Stephan Bülling
GoldFish.MFISH - (W)1993-1994 Stephan Bülling
- (C)1993-1995 Mega/Soft Ltd.
*/
ver="GoldFish v0.3";OPTIONS RESULTS;SIGNAL ON Break_C;
cr=d2c(13)||d2c(10);'WaitForPort MFISH';ADDRESS 'MFISH';NL = '0a'x;
/* checken*/
/*|||*/
if show('library','rexxreqtools.library') = 0 then do
call addlib("rexxreqtools.library", 0, -30, 0);end
if ~Show(P,'MFISH') then do
Say cr||cr||"GoldFish.mfish (w) 1994 Stephan Bülling"||cr
Say "MegaFish muß zuerst gestartet werden!"||cr
options PROMPT "Ende mit <RETURN>";pull it;exit;end
/*|||*/
/*|||*/Anfang:
ans1=rtezrequest(center(""ver"",60)||NL||,
center("(C)1993-1995 Mega/Soft Ltd.",40)||NL||,
center("(W)1993-1994 Stephan Bülling",40),"_Start|_About",""ver"");
IF Ans1= 1 then call start;IF Ans2= 2 then call Werbung;Werbung:
Ans=DUMMMY=rtezrequest(center(""VER"",70)||NL||,
center(" (W)1993-1994 Stephan Bülling ",50)||NL||,
center(" (C)1993-1995 Mega/Soft Ltd.",50)||NL||,
center("",50)||NL||,
center(" EMail: rubberduck@blanker.ruhr.de",50)||NL||,
center(" Dieses Programm ist PMWare (Brief-Ware)",50)||NL||,
CENTER(" ",70),"_Weiter",""VER"");call anfang
/*|||*/
/*|||*/start:
IF EXISTS("GoldFish1-Apr94:") THEN DO
ADDRESS COMMAND "ASSIGN BBS: CD0:BBS";CALL Entpacken;END;ELSE;EXIT;END
/*|||*/
/*|||*/ Entpacken:
STATUS MARK;marki=RESULT;QUERY NAME;nam=RESULT;
IF marki = "0" Then call nix
mar1=rtezrequest("Du hast ( "marki" ) Programme markiert"||NL||,
"Was möchtest du machen ?"||NL||,
"Alle markierten Einträge bearbeiten"||NL||,
"Oder Aktuellen Eintrag ( "nam" )"||NL||,
"bearbeitten ?","_Mark|_Aktuell",""ver" (W) Stephan Bülling '94")
IF mar1= 1 then;call mark;else;CALL nix
mark:;ADDRESS 'MFISH';GOTO TOP;NEXT MARK;CALL nix;
nix:;QUERY DISK;DD=RESULT;QUERY NAME;nam=RESULT;
dirname = rtfilerequest(, ,"Wähle Directory für "nam"", ,,
"rtfi_flags = freqf_nofiles")
if rtresult == 0 then;CALL BREAK_C
else;IF dirname="Ram Disk:" then do;dirname="RAM:";END;
diskn:;IF dd ~>"99" THEN;Y=0;ELSE
IF dd ~>"199" THEN;Y=1;ELSE;IF dd ~>"299" THEN;Y=2;ELSE
IF dd ~>"399" THEN;Y=3;ELSE;IF dd ~>"499" THEN;Y=4;ELSE
IF dd ~>"599" THEN;Y=5;ELSE;IF dd ~>"699" THEN;Y=6;ELSE
IF dd ~>"799" THEN;Y=7;ELSE;IF dd ~>"899" THEN;Y=8;ELSE
IF dd ~>"999" THEN;Y=9;ELSE;IF dd ~>"1000" THEN;Y=10
was1=rtezrequest(center("Programm : "nam"",40)|| NL ||center("Was soll ich da mit machen ",40),"_Entpacken|_Kopieren",""ver" © Stephan Bülling '94");
IF was1= 1 then call unpack;
IF was2= 2 then call pack;
/*|||*/
/*|||*/pack:
IF dd ~>"9" THEN DO;ADDRESS COMMAND
"c:copy BBS:d"y"xx/d00"dd"/"nam".lha "dirname"";CALL BREAK_C
END;ELSE DO;IF dd ~>"99" THEN DO;ADDRESS COMMAND
"c:copy BBS:d"y"xx/d0"dd"/"nam".lha "dirname""
CALL BREAK_C;END;ELSE DO;IF dd ~>"1000" THEN DO;ADDRESS COMMAND
"c:copy BBS:d"y"xx/d"dd"/"nam".lha "dirname""
IF mar1="1" then CALL markierung;else;call break_C;end
/*|||*/
/*|||*/unpack:
SAY cr||" Entpacke das Programm "nam" von Diskette #"dd" ins "dirname""||cr
IF dd ~>"9" THEN DO;ADDRESS COMMAND
"c:Lha -x -m -Qd x BBS:d"y"xx/d00"dd"/"nam".lha "dirname""
END;ELSE DO;IF dd ~>"99" THEN DO; ADDRESS COMMAND
"c:Lha -x -m -Qd x BBS:d"y"xx/d0"dd"/"nam".lha "dirname""
END;ELSE DO;IF dd ~>"1000" THEN DO;ADDRESS COMMAND
"c:Lha -x -m -Qd x BBS:d"y"xx/d"dd"/"nam".lha "dirname""
IF mar1="1" then CALL markierung;ELSE;CALL BREAK_C;END;END;END;END;
/*|||*/
/*|||*/markierung:
ADDRESS 'MFISH';STATUS MARK;marki=RESULT;
DO FOR marki;NEXT MARK;IF RC="5" then CALL BREAK_C;ELSE;DROP nam dd;QUERY DISK;
DD=RESULT;QUERY NAME;nam=RESULT;CALL DISKN;GOTO TOP;END
/*|||*/
/*|||*/Break_C:
ADDRESS COMMAND "ASSIGN BBS: ";ADDRESS 'MFISH';EXIT
/*|||*/